package org.cloud.openfeign.consumer80.controller;

import javax.annotation.Resource;

import org.cloud.openfeign.consumer80.service.UserinfoFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer")
public class UserInfoController {
	
	@Resource
	private UserinfoFeignService service;
	
	@GetMapping("/userinfo/port")
	public String getPort() {
		return service.getInfo();
	}
}
